package com.zhkeshe.keshe.Socket;

import lombok.Data;

import java.util.List;

@Data
public class SidAndUUID {

    private String sid;//session id
    private String UUID;//硬件id
    private boolean islive;

    public SidAndUUID(String sid) {
        this.sid = sid;
        this.islive=false;
    }

    public SidAndUUID() {
    }

    public static void remove(List<SidAndUUID> sidAndUUIDList, String sid){
        for(int i=0;i<sidAndUUIDList.size();i++){
            if(sidAndUUIDList.get(i).getSid().equals(sid)){//扫描到会话id,进行删除
                sidAndUUIDList.remove(i);
                i--;
            }
        }
    }
}
